package com.jin.service;

import com.jin.model.Activity;
import com.jin.repository.ActivityRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ActivityService {
    @Autowired
    ActivityRepository activityRepository;
    public Activity getByName(String name){
        return activityRepository.findByName(name);
    }
}
